#include<p18f4550.h>
#include<delays.h>
#include<xc.h>



int matriz[8]={0x70,0x48,0x44,0x44,0x44,0x44,0x48,0x70};

int a,b=0;


void main(){
    ADCON1=15;
    TRISB=0x00;
    TRISD=0x00;
    Delay10KTCYx(1);
    while(1){
        PORTD=1;
        for(a=0; a<8; a++){
            for(b=0;b<8;b++){
                PORTB=matriz[a];
                Delay1TCYx(10);}
                LATD<<=1;}

            }
        }